package com.ai.platform.system.mapper;

import com.ai.platform.system.entity.SysMenu;
import com.baomidou.mybatisplus.mapper.BaseMapper;

import java.sql.SQLException;
import java.util.List;

/**
 * <p>
 * 菜单表 Mapper 接口
 * </p>
 *
 * @author yeyingsheng
 * @since 2018-05-27
 */
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    /**
     * 根据用户ID查询菜单
     * @param userId
     * @return
     * @throws SQLException
     */
    List<SysMenu> queryMenuListByUserId(Integer userId) throws SQLException;

}
